﻿using System;

namespace Tisonet.DataMining.Domain.Itemsets
{
    public class Transaction
    {
        private readonly UInt32[] _items;
        private readonly Int32 _transactionId;

        public Transaction(Int32 transactionId, UInt32[] items)
        {
            _transactionId = transactionId;
            _items = items;
        }  

        public Int32 TransactionId
        {
            get { return _transactionId; }
        }

        public UInt32[] Items
        {
            get { return _items; }
        }

        public UInt32 this[int index]
        {
            get { return _items[index]; }
        }

        public int Length
        {
            get { return _items.Length; }
        }
    }
}
